void _gdk_mir_print_event (const MirEvent *event);
/* TODO: Remove once we have proper transient window support. */
-GdkWindow * _gdk_mir_window_get_transient_child (GdkWindow *window,
- gint x,
- gint y,
- gint *out_x,
- gint *out_y);
+GdkWindow * _gdk_mir_window_get_visible_transient_child (GdkWindow *window,
+ gint x,
+ gint y,
+ gint *out_x,
+ gint *out_y);
#endif /* __GDK_PRIVATE_MIR_H__ */
x = event->event.motion.pointer_coordinates[0].x;
y = event->event.motion.pointer_coordinates[0].y;
- child = _gdk_mir_window_get_transient_child (window, x, y, &x, &y);
+ child = _gdk_mir_window_get_visible_transient_child (window, x, y, &x, &y);
if (child && child != window)
{
/* TODO: Remove once we have proper transient window support. */
GdkWindow *
-_gdk_mir_window_get_transient_child (GdkWindow *window,
- gint x,
- gint y,
- gint *out_x,
- gint *out_y)
+_gdk_mir_window_get_visible_transient_child (GdkWindow *window,
+ gint x,
+ gint y,
+ gint *out_x,
+ gint *out_y)
{
GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
GdkWindow *child = NULL;
y -= window->y;
for (i = impl->transient_children; i && !child; i = i->next)
- child = _gdk_mir_window_get_transient_child (i->data, x, y, out_x, out_y);
+ {
+ if (GDK_MIR_WINDOW_IMPL (GDK_WINDOW (i->data)->impl)->visible)
+ child = _gdk_mir_window_get_visible_transient_child (i->data, x, y, out_x, out_y);
+ }
if (child)
return child;